package net.oschina.app.pages;

import android.view.View;

import net.oschina.app.testcases.favorites.SoloWrap;

/**
 * Created by Administrator on 2017/7/3.
 */

public class PageSettings {
    private SoloWrap solo;
    private View about,logout;


    public PageSettings(SoloWrap solo){
        this.solo = solo ;
    }

    public void initViews(){
        about = solo.getView("net.oschina.app:id/rl_about");
        logout = solo.getView("net.oschina.app:id/rl_cancle");
    }

    public void clickAbout(){
        solo.clickOnView(about);
    }

    public void clickLogout(){
        solo.clickOnView(logout);
        solo.sleep(2);
    }
}
